Repository navigation
feat(compat): canonical codegraph shim launcher and installer for Windows - #341
Merged
Merged
Conversation
- npm root -g stops after 2s and falls through to the fixed paths, so a stalled npm can no longer hang the MCP server - CODEGRAPH_NPM_SHIM must be absolute and is used symlink-resolved - the installer builds to a temp file and replaces codegraph.exe, reporting a running MCP server that holds the file - the user PATH is appended through the registry as REG_EXPAND_SZ, keeping existing %VAR% entries verbatim; removal is documented - Go unit tests for the lookup order, override and npm timeout
…aph-shim # Conflicts: # CHANGELOG.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
scripts/compat/: a Go launcher that exposes the fork's installed@aroman22/codegraph-vbapackage as the canonicalcodegraphcommand, for tools that expect it (gentle-ai, MCP entries), andinstall-codegraph-shim.ps1to build and install it.node npm-shim.js args...), never throughcmd /c.npm root -gis tried first, bounded to 2s, then the fixed paths. A stale old install under the user profile never wins over the current global install when npm answers.CODEGRAPH_NPM_SHIMmust be absolute and is used symlink-resolved.REG_EXPAND_SZ. Removal is documented.Native review approved. Non-blocking follow-ups: a stderr note when the npm lookup times out, a Job Object so a force-killed launcher does not orphan node, an absolute-path check for
CODEGRAPH_SHIM_DIR, exit 9009 on Unix, and an orphaned npm grandchild on timeout.